package com.jkhan.demo.annotation;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)//可通过反射获取
@Documented//被javadoc解析时可保留
@Target({ElementType.METHOD, ElementType.TYPE})//可用范围
@Inherited//具有继承性，父类有该注解，子类自动拥有该注解
public @interface MyAnnotation {
    int value() default 2;
}
